package tinp.entity;

import java.util.Date;

/**
 * @author Tin Pham
 * @since 8/11/2014.
 */
public class Post {
	public static enum Status {
		DRAFT(1),
		PUBLISHED(2),
		OUTDATED(3);

		private final int value;

		private Status(int value) {
			this.value = value;
		}

		public int getValue() {
			return this.value;
		}
	}

	private int id;
	private String title;
	/* DRAFT or PUBLISHED or OUTDATED */
	private int status;
	private Date date;
	private String meta;
	private String author;
	private String content;

	public Post() {

	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMeta() {
		return meta;
	}

	public void setMeta(String message) {
		this.meta = message;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
}
